﻿namespace Chain.Model
{
    using System;

    [Serializable]
    public class SecondMemBase
    {
        private DateTime _smb_create = DateTime.Now;
        private long _smb_id;
        private int _smb_memid;
        private string _smb_pagecontrol;
        private int _smb_pagecontroltype;
        private string _smb_pagecontrolvalues;
        private bool _smb_status = true;
        private int _smb_userid;

        public string getInsrtSqlCommand()
        {
            return string.Format("INSERT INTO dbo.SecondMemBase(SMB_MemID,SMB_Create,SMB_UserID,SMB_PageControl,SMB_PageControlType,SMB_PageControlValues,SMB_Status)VALUES('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", new object[] { this._smb_memid, this._smb_create, this._smb_userid, this._smb_pagecontrol, this._smb_pagecontroltype, this._smb_pagecontrolvalues, this._smb_status ? 1 : 0 });
        }

        public DateTime SMB_Create
        {
            get
            {
                return this._smb_create;
            }
            set
            {
                this._smb_create = value;
            }
        }

        public long SMB_ID
        {
            get
            {
                return this._smb_id;
            }
            set
            {
                this._smb_id = value;
            }
        }

        public int SMB_MemID
        {
            get
            {
                return this._smb_memid;
            }
            set
            {
                this._smb_memid = value;
            }
        }

        public string SMB_PageControl
        {
            get
            {
                return this._smb_pagecontrol;
            }
            set
            {
                this._smb_pagecontrol = value;
            }
        }

        public int SMB_PageControlType
        {
            get
            {
                return this._smb_pagecontroltype;
            }
            set
            {
                this._smb_pagecontroltype = value;
            }
        }

        public string SMB_PageControlValues
        {
            get
            {
                return this._smb_pagecontrolvalues;
            }
            set
            {
                this._smb_pagecontrolvalues = value;
            }
        }

        public bool SMB_Status
        {
            get
            {
                return this._smb_status;
            }
            set
            {
                this._smb_status = value;
            }
        }

        public int SMB_UserID
        {
            get
            {
                return this._smb_userid;
            }
            set
            {
                this._smb_userid = value;
            }
        }
    }
}

